You can use the Tag plugin(install from package control). Then just press ctrl + shift + p , and type tag . You'll see the option Auto-Format tags on document.
Prettier works pretty great for me. Sublime's package is called JsPrettier, but don't let the name fool you, it can format like 15 different languages/syntaxes.